package com.yanyuhang.service;

import com.yanyuhang.entity.Organization;

import javax.naming.Name;
import javax.naming.ldap.LdapName;
import java.util.List;

/**
 * @author yyh
 * @create 2021-02-20 13:48
 */
public interface PersonRepo {

    public List<String> getAllPersonNames();

    public List<Organization> getAllPersons();

    public List<Organization> getOneLevelPersons();

    public Organization findPerson(String dn);

    public Name buildDn(Organization p);

    public Name buildDn(String ou);


    public void create(Organization p);

    public void create2(Organization p);

    public void update(Organization p);


    public void delete(Organization p);

    public LdapName getFullPersonDn(Organization person);

    //使用一个ContextMapper搜索
    public Organization findByPrimaryKey(String name);

}
